import server from "../util/request.js";






export function getCategories() {
return server({
    url: "/category",
    method: "GET"
})

}


export function getCategory(id) {
return server({
    url: `/category/${id}`,
    method: "GET"
})
}


export function getCategoryProducts(id) {
return server({
    url: `/category/findProduct/${id}`,
    method: "GET"
})
}